<div class="container">
    <form class="form-signin" method="post" action="?">
        <h2 class="form-signin-heading">Please Sign</h2>
        <p *ngIf="error_msg" class="text-danger">{{error_msg}}</p>
        <label for="account" class="sr-only">Account</label>
        <input type="text" [(ngModel)]="account" name="account" maxlength="22" class="form-control"
               placeholder="Enter Account" required autofocus>
        <label for="password" class="sr-only">Password</label>
        <input type="password" [(ngModel)]="password" name="password" maxlength="12" class="form-control"
               placeholder="Enter Password" required>
        <div class="checkbox">
            <label>
                <input type="checkbox" value="remember-me"> 记住账号
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="button" (click)="doLogin()">登录</button>
    </form>

</div> <!-- /container -->
    